<?php

namespace App\View\Components\Ca;

use App\Repositories\Ca\ComeWayRepository;
use App\Repositories\Ca\DockerRepository;
use Illuminate\View\Component;

class Doctor extends Component
{
    public $lis;
    public $value;
    public $showAll;

    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct($value = 0, $showAll = true)
    {
        $this->value = $value;
        $this->showAll = $showAll;
        $this->lis = (new DockerRepository())->lis();

    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
    public function render()
    {
        return view('components.ca.doctor');
    }
}
